<?php
/*
 * Created on 2012-7-7
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<div id="left">
    		 <div Class="post">
    		 <!-- 文章列表-->
				<?php foreach($articles as $article):?>
    				<h3><strong><?php echo anchor(site_url()."/article/$article->id",$article->title)?></strong></h3>

    				<h4 class="metadata">
						<span>发布于: <?php echo $article->publish_date?></span>
						<span>分类: <?php echo common::_get_category_name($article->category_tree,"/category/")?></span>
						<span class="no-border">作者: <?php echo anchor(site_url(),$article->username)?></span>

					</h4>
					<div class="content">
						<?php echo $article->content?>
					</div>
				<?php endforeach;?>


					<div class="related">
						<h4><strong>相关日志:</strong></h4>
							<ul>
								sdfsf
							</ul>
					</div>
					<?php
						if($pageinfo){
							echo "<di id='pageinfo'>".$pageinfo."</div>";
						}
					?>
					<div class="tags">
						<?php if(!empty($post->tags)):?>
							<h4><strong>标签:</strong> <?php echo Common::format_metas($post->tags, ',');?></h4>
						<?php endif;?>
					</div>
				</div>
</div>
